new Vue({
	el: "body",
	data: {
		company: "",
		joblist:{},
	},
	methods: {},
	created: function() {
		init();
		var _this = this;
		var companyName = get(geturlitem(location.search, "companyName"));
		console.log(companyName);
		var query = new AV.Query('company');//获取表
		query.equalTo('companyName', companyName);//按关键字查询
		query.find().then(function(success) {
			console.log(success[0].attributes);
			_this.company = success[0].attributes;

		}).catch(function(error) {
			console.log(error);
		});
		var collection = new AV.Query('position');//获取表
		collection.equalTo('companyName', companyName);//按关键字查询
		collection.find().then(function(success) {
			console.log(success);
			_this.joblist = success;
		}).catch(function(error) {
			console.log(error);
		});
	}
})